///////////////////////////////////
	// Start player = 0
	player_ndx=0; 
	
	player=m_holdem_state[m_ndx].m_player[player_ndx];

	if (player.m_name_known==1) {
		player0name = player.m_name;
		player0.name = &player0name;
	} else {
		player0.name = NULL;
	}

	if (player.m_balance_known==1) {
		player0balance =  player.m_balance;
		player0.balance=&player0balance;
		player0currentBet  =  player.m_currentbet;
		player0.currentBet=&player0currentBet;
	} else {
		player0.balance= NULL;
		player0.currentBet = NULL;
	}

	// cards
	player0pocketCardA.rank=RANK(player.m_cards[0]);
	player0pocketCardA.suit=SUIT(player.m_cards[0]);
	player0pocketCardB.rank=RANK(player.m_cards[1]);
	player0pocketCardB.suit=SUIT(player.m_cards[1]);
	
	player0.pocketCardA=&player0pocketCardA;
	player0.pocketCardB=&player0pocketCardB; 


	// booleans 
	if (player_ndx==dealerchair) {
		player0dealer=true;
	} else {
		player0dealer=false;
	}
	player0.dealer=&player0dealer;

	if ((player_ndx==userchair)&&(ismyturn==7)) {
		player0myTurn=true;
	} else {
		player0myTurn=false;
	}
	player0.myTurn=&player0myTurn;  

	
	// Has this seat
	player0occupied=is_seated(player_ndx);
	player0.occupied=&player0occupied; 

	// Has joined the game
	player0seated=is_active(player_ndx);
	player0.seated=&player0seated;

	// Has been dealt cards
	player0dealtin=is_dealt(player_ndx);
	player0.dealtIn=&player0dealtin; 

	// Still has cards
	player0folded=player0dealtin&&(!is_playing(player_ndx));
	player0.folded=&player0folded;  

	// TODO 
	//	player0.winner=&player0winner;  
	
	player0position= pos_pf(player_ndx);
	player0.position=&player0position;  

	player0id=0;
	player0.id=&player0id;  

	tableimage.players.push_back(&player0);

	// END PLAYER 0
	///////////////////////////////////